extends "../biaoqiang-2/biaoqiang-2.gd"
func _extInit():
	._extInit()
	lv = 3             #等级的设置
	addSkill("对目标造成炮击伤害后，若目标护甲低于自身，则立即使皇家标枪冷却完毕(内置冷却2秒)", "毁灭之力")

func _onAtkChara(atkInfo):
	._onAtkChara(atkInfo)
	if atkInfo.atkType == sys.AtkType.GUN and atkInfo.hitCha.att.def < att.def and enable <= 0:
		enable = 2
		reloadSkill("sk_javelin1")

var enable = 0
func _upS():
	._upS()
	enable -= 1